20030 S.COUNT%=0:PR.BEST=-1000:N.BEST=1:NO.PATH%=-1:FOR I=NFREQ TO 1 STEP-1:IF FREQ(I)<1.2*F.MUF AND PR(I)>PR.BEST THEN PR.BEST=PR(I):N.BEST=I
20035 IF S.COUNT%>=7 THEN 20050
20040 IF PR(I)>-20 AND FREQ(I)>.8*F.LUF AND FREQ(I)<1.2*F.MUF THEN NO.PATH%=0:S.COUNT%=S.COUNT%+1:PRINT USING "##.# ###.# ###.# #### ";FREQ(I),-REF.LOSS(I),ABSORB.LOSS(I),PR(I)
20045 IF PR(I)>-20 AND FREQ(I)>.8*F.LUF AND FREQ(I)<1.2*F.MUF THEN NO.PATH%=0:PRINT USING " ###.# ###.# ";-TX.LOSS(I),-RX.LOSS(I)
20050 NEXT I:I=N.BEST
20054 IF NO.PATH% THEN PRINT USING "##.# ###.# ###.# #### ";FREQ(I),-REF.LOSS(I),ABSORB.LOSS(I),PR(I)
20056 IF NO.PATH% THEN PRINT USING " ###.# ###.# ";-TX.LOSS(I),-RX.LOSS(I)
20060 IF NO.PATH% THEN PRINT:PRINT "No Feasible Freq"
20062 IF NO.PATH% THEN PRINT "Best of Bad Lot is Shown"
20070 RETURN
35000 SUB REFLECT(ELEV,WAVE.LEN,SEA%,RMAGV,VPHASE,RMAGH,HPHASE,REFLECT.LOSS) STATIC
35010 'REFLECTION COEFFICIENT CALCULATION
35020 SHARED CNV,PI
35030 IF SEA% THEN ER=80:EI=-60*WAVE.LEN*4:DH=4 ELSE ER=15:EI=-60*WAVE.LEN*.01:DH=10